package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Member;

import java.util.List;
import java.util.Map;

public interface MemberService {



    public void add(Member member);

    public Member findByTelephone(String telephone);

    public List<Integer> findMemberCountByMonth(List<String> month);

    public PageResult pageQuery(Integer currentPage, Integer pageSize, String queryString);

    public void delete(Integer id);

    public  Member findById(Integer id);

    PageResult findPage(QueryPageBean queryPageBean);

    List<String> getNames();

    /*
    * gjx
    * */
    void edit(Member member);
    void updateTelephoneById(Integer id, String telephone);
    void updatePasswordByTelephone(String telephone, String newPassword);

    Map getMemberAge();

}
